<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: cy_stc_keyscan_context_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structcy__stc__keyscan__context__t.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">cy_stc_keyscan_context_t Struct Reference<div class="ingroups"><a class="el" href="group__group__keyscan.html">KeyScan      (KeyScan)</a> &raquo; <a class="el" href="group__group__keyscan__data__structures.html">Data Structures</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Description</h2>
<div class="textblock"><p>KEYSCAN Context configuration These settings are per keyscan context. </p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:af77b57af7f3eff363af30d035403c940"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcy__stc__key__event.html">cy_stc_key_event</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#af77b57af7f3eff363af30d035403c940">bufStart</a> [KEYSCAN_FW_FIFO_SIZE]</td></tr>
<tr class="memdesc:af77b57af7f3eff363af30d035403c940"><td class="mdescLeft">&#160;</td><td class="mdescRight">Location where the FW FIFO starts.  <a href="#af77b57af7f3eff363af30d035403c940">More...</a><br /></td></tr>
<tr class="separator:af77b57af7f3eff363af30d035403c940"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a796b6a8e348526f7345de49757d954b3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#a796b6a8e348526f7345de49757d954b3">maxNumElements</a></td></tr>
<tr class="memdesc:a796b6a8e348526f7345de49757d954b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of elements that can be placed in the FW FIFO.  <a href="#a796b6a8e348526f7345de49757d954b3">More...</a><br /></td></tr>
<tr class="separator:a796b6a8e348526f7345de49757d954b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53ce407c335dd4eb92cbc110cb9733bb"><td class="memItemLeft" align="right" valign="top"><a id="a53ce407c335dd4eb92cbc110cb9733bb"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#a53ce407c335dd4eb92cbc110cb9733bb">curNumElements</a></td></tr>
<tr class="memdesc:a53ce407c335dd4eb92cbc110cb9733bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of elements currently in the FW FIFO. <br /></td></tr>
<tr class="separator:a53ce407c335dd4eb92cbc110cb9733bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee5b4d8b3d1dd10cee7235aa64cf53df"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#aee5b4d8b3d1dd10cee7235aa64cf53df">readIndex</a></td></tr>
<tr class="memdesc:aee5b4d8b3d1dd10cee7235aa64cf53df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read index into the FW FIFO.  <a href="#aee5b4d8b3d1dd10cee7235aa64cf53df">More...</a><br /></td></tr>
<tr class="separator:aee5b4d8b3d1dd10cee7235aa64cf53df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af110e6b3cb23572eb0aa95677c0d0e82"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#af110e6b3cb23572eb0aa95677c0d0e82">writeIndex</a></td></tr>
<tr class="memdesc:af110e6b3cb23572eb0aa95677c0d0e82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write index into the FW FIFO.  <a href="#af110e6b3cb23572eb0aa95677c0d0e82">More...</a><br /></td></tr>
<tr class="separator:af110e6b3cb23572eb0aa95677c0d0e82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5e481b85ac5c0413c7306b1447bebeb"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#ab5e481b85ac5c0413c7306b1447bebeb">savedWriteIndexForRollBack</a></td></tr>
<tr class="memdesc:ab5e481b85ac5c0413c7306b1447bebeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saved write index for rollback.  <a href="#ab5e481b85ac5c0413c7306b1447bebeb">More...</a><br /></td></tr>
<tr class="separator:ab5e481b85ac5c0413c7306b1447bebeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa94446d6e56214db9e8c776af98418a2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#aa94446d6e56214db9e8c776af98418a2">savedNumElements</a></td></tr>
<tr class="memdesc:aa94446d6e56214db9e8c776af98418a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saved number of elements for rollback.  <a href="#aa94446d6e56214db9e8c776af98418a2">More...</a><br /></td></tr>
<tr class="separator:aa94446d6e56214db9e8c776af98418a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad374559cd63472642ae1e31ea274c292"><td class="memItemLeft" align="right" valign="top"><a id="ad374559cd63472642ae1e31ea274c292"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#ad374559cd63472642ae1e31ea274c292">keysPressedCount</a></td></tr>
<tr class="memdesc:ad374559cd63472642ae1e31ea274c292"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of key down events that are not yet matched by key up events, which gives the number of keys currently being pressed. <br /></td></tr>
<tr class="separator:ad374559cd63472642ae1e31ea274c292"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb6213614fb2a68968dc8ca32df3b17f"><td class="memItemLeft" align="right" valign="top"><a id="abb6213614fb2a68968dc8ca32df3b17f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#abb6213614fb2a68968dc8ca32df3b17f">keyscan_pollingKeyscanHw</a></td></tr>
<tr class="memdesc:abb6213614fb2a68968dc8ca32df3b17f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether HW polling is done from Keyscan. <br /></td></tr>
<tr class="separator:abb6213614fb2a68968dc8ca32df3b17f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeb4311f360ed5cd11bf9f1c3ddfd70d"><td class="memItemLeft" align="right" valign="top"><a id="aeeb4311f360ed5cd11bf9f1c3ddfd70d"></a>
<a class="el" href="group__group__keyscan__data__structures.html#gabdae0c466fe83ef246af89387c127ee0">cy_cb_keyscan_handle_events_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcy__stc__keyscan__context__t.html#aeeb4311f360ed5cd11bf9f1c3ddfd70d">cbEvents</a></td></tr>
<tr class="memdesc:aeeb4311f360ed5cd11bf9f1c3ddfd70d"><td class="mdescLeft">&#160;</td><td class="mdescRight">callback function <br /></td></tr>
<tr class="separator:aeeb4311f360ed5cd11bf9f1c3ddfd70d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Field Documentation</h2>
<a id="af77b57af7f3eff363af30d035403c940"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af77b57af7f3eff363af30d035403c940">&#9670;&nbsp;</a></span>bufStart</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcy__stc__key__event.html">cy_stc_key_event</a> cy_stc_keyscan_context_t::bufStart[KEYSCAN_FW_FIFO_SIZE]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Location where the FW FIFO starts. </p>
<p>Provided during initialization. </p>

</div>
</div>
<a id="a796b6a8e348526f7345de49757d954b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a796b6a8e348526f7345de49757d954b3">&#9670;&nbsp;</a></span>maxNumElements</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t cy_stc_keyscan_context_t::maxNumElements</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maximum number of elements that can be placed in the FW FIFO. </p>
<p>Provided during initialization. </p>

</div>
</div>
<a id="aee5b4d8b3d1dd10cee7235aa64cf53df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee5b4d8b3d1dd10cee7235aa64cf53df">&#9670;&nbsp;</a></span>readIndex</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t cy_stc_keyscan_context_t::readIndex</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read index into the FW FIFO. </p>

</div>
</div>
<a id="af110e6b3cb23572eb0aa95677c0d0e82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af110e6b3cb23572eb0aa95677c0d0e82">&#9670;&nbsp;</a></span>writeIndex</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t cy_stc_keyscan_context_t::writeIndex</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write index into the FW FIFO. </p>

</div>
</div>
<a id="ab5e481b85ac5c0413c7306b1447bebeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5e481b85ac5c0413c7306b1447bebeb">&#9670;&nbsp;</a></span>savedWriteIndexForRollBack</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t cy_stc_keyscan_context_t::savedWriteIndexForRollBack</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Saved write index for rollback. </p>

</div>
</div>
<a id="aa94446d6e56214db9e8c776af98418a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa94446d6e56214db9e8c776af98418a2">&#9670;&nbsp;</a></span>savedNumElements</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t cy_stc_keyscan_context_t::savedNumElements</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Saved number of elements for rollback. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
